home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6489 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.wyoming.com!usenet
  2. From: dcromley@wyoming.com (Dave Cromley)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Graphics with Borland Turbo c++ 4.5?
  5. Date: 8 Feb 1996 23:05:42 GMT
  6. Organization: wyoming.com LLC
  7. Message-ID: <4fdvk6$957@horn.wyoming.com>
  8. References: <31129FB3.2F0A@gatekeeper.vic.com> <823306694.29004@xetius.demon.co.uk>
  9. NNTP-Posting-Host: cys-cap-3.wyoming.com
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.99.2
  12.  
  13. >>.. #include <graphics.h> gives me the error that BGI doesn't work 
  14. >>under windows.  
  15. >>.. I would really appreciate if someone would post a simple 
  16. >>(really, really simple) program that does something like set 
  17. >>the background color and draw a rectangle.
  18.  
  19. Chris said:
  20. >To produce graphics in DOS is quite simple (Using the BGI libraries), 
  21. >you simply initialise the graphics driver, and tell it what you want 
  22. >to do.  Within windows it is also relatively simple (Once you have 
  23. >everything setup within the Application), you simply write everything 
  24. >to the DC (Device context).  But this in itself is an integral part 
  25. >of windows, so its best to learn windows programming using C++.
  26.  
  27. I just found out:
  28. Turbo C++ for windows does not have the command-line functions,
  29. including BCC, the DOS compiler.  Therefore it (TCWIN) does not do
  30. graphics.  BCC is mentioned in the online manuals, but I don't think
  31. it should be there.  I guess you (we) need to downgrade to a DOS version
  32. or upgrade to BC++ (full version, which does have BCC).
  33.  
  34. Chris: say more about DC (device context).
  35.  
  36. Somebody: give a simple C++ program that draws a line under windows.
  37. Or explain what you need to do that.
  38.  
  39.   Dave C.
  40.  
  41.